package com.hs.spring.bean.dao.impl;

import com.hs.spring.bean.dao.UserDao;
import org.springframework.stereotype.Repository;

/**
 * @Author: songhao
 * @Date: 2021/9/5
 * @Description: TODO
 */
@Repository("userDao")
public class UserDaoImpl implements UserDao {

    @Override
    public boolean login(String username, String password) {
        //这里就做简单判断，不访问数据库了
        if(username.equals("admin") && password.equals("admin")){
            return true;
        }
        return false;
    }
}
